-
-
Notifications
You must be signed in to change notification settings - Fork 775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: side round support + banner tweaks + add tooltip #9641
Conversation
ca49c07
to
120dbe8
Compare
height: 111px !important; | ||
} | ||
|
||
@media (max-width: 991.98px) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we add a utility to manage responsive fonts rather than handling them inline?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Just one small question, but we can get this reworked if we chose to go that way!
app/grants/models/grant.py
Outdated
active_round_names= [] | ||
for active_round in self.in_active_clrs.all(): | ||
active_round_names.append(active_round.display_text) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great work! just this -> would be more performant if we do
active_round_names = self.in_active_clrs.values_list('display_text', flat=True)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm this won't work as such ! I might have to typcast it into a list
Description
Sideround Changes
Updates models to introduce new fields on GrantCLR for mini banner.
While creating a new round , these values would have to be set right in order to ensure it's rendered as expected
type
-> select if GrantCLR is main / sponsor / causelogo_text_hex
- > hex color of text within logobanner_bg_hex
-> hex color of background below logo (aka called banner)banner_text_hex
-> hex color of text within bannerbanner_text
-> mini text on the bannerGIVEN I am a user on the grants app homepage
WHEN I am looking at the active matching pools
THEN I see a title and description to the entire matching pool section as indicated by the design.
GIVEN I am a user on the grants app homepage
WHEN I am looking at the active matching pools
THEN I see the matching amount above "available", color-coded banners, and matching pool descriptions as indicated by the design.
GIVEN I am a Grants app internal operator on the grant brand routing policy page
WHEN I edit a grant branding policy
THEN I can edit the matching amount, hex color, and description of the matching pool banner.
Testing
Tooltip Changes
As a Grant owner, I want to see how much matching I’ve received from the matching pool(s) my grant are a part of, and understand which matching pools my grant is in.
Acceptance Criteria or Definition of Done
GIVEN I am on a grant detail page
WHEN I look at the metrics under "Active Matching Rounds"
THEN I see the total matching funds the grant has received across all rounds ($X from matching pools).
GIVEN I am looking at the metrics under "Active Matching Rounds"
WHEN I hover over "$X from matching pools"
THEN I see a tooltip with a description explaining what the metric means and which matching pools the grant is a part of.
Testing
Refers/Fixes
closes #9635
closes #9636
closes #9649